package com.dxiang.demo.utils;

/**
 * @author Jerry
 */
public enum RepostedEnum
{

    ORIGINAL(0),

    REPRINTED(1);

    private int value;

    RepostedEnum(int value)
    {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static RepostedEnum getEnum(Integer val)
    {
        for (RepostedEnum v : values())
        {
            if (v.getValue() == val)
            {
                return v;
            }
        }
        return null;
    }
}
